# encoding=utf-8
class SmsAtt:
    '''所有短信相关模块的属性配置文件'''
    sms_switchto_teacher_xpath = "//input[@name='receiverType' and @value='1']"
    # 选择学生里面的学生属性id
    sms_switch_stu_id = 'switchStuId'
    # 选择学生frame
    sms_frame_choice_stu = 'layui-layer-iframe1'
    # 选择学生的班级列表属性
    sms_choice_stu_class_class = "div.panel.panel-default"
    # 选择老师的部门列表属性
    sms_choice_tea_dept_class = "div.panel.panel-default"
    # 班级或者部门是否展开的属性判断
    sms_dept_class_iscollapse = "div.panel-collapse.collapse"
    # 学生或者老师的手机号att
    sms_phone_att = "data-phone"
    # 学生或者老师的姓名att
    sms_name_att = "data-tname"
    # 班级或者部门的属性
    sms_dept_class_class = "class-name"
    # 选择学生或者老师的frame外面的btn确定按钮
    sms_frame_ok_btn = 'layui-layer-btn0'
    # 选择老师里面的老师属性id
    sms_switch_tea_id = "switchTeaId"
    # 选择用户的框
    sms_select_userArea = 'selectUserArea'
    # 提交按钮
    sms_btn_submit = 'btnSubmit'
    # 选择定时的按钮
    sms_timing_name = 'timing'
    # 定时功能选择时间的框
    sms_timing_id = 'timingTime'
    # 定时框里面确定按钮
    sms_timing_btn = "applyBtn"
    # 短信内容框id
    sms_content_id = 'content'
    # 我发送的模块tab页面里面的我发送的页面
    sms_mysend_tab_mysend_xpath = "//nav[@class='tabs-wrap']/ul/li/a[text()='我发送的']"
    # 我发送的里面关键字框
    sms_mysend_keyword_id = 'txtKeyword'
    # 我发送的里面查询按钮
    sms_mysend_btn_class = 'btn-primary'
    # 我发送的里面查询结果后面的短信接收列表按钮
    sms_mysend_receive_btn = 'smsReceive'
    # 我发送的模块，查询接收人列表frame
    sms_mysend_receiver_frame = 'layui-layer-iframe1'
    # 我发送的模块，接收人frame里面的，接收人姓名
    sms_mysend_receiver_frame_username = '//div[@id="smsReceive"]/section/table/tbody/tr[1]/td'
    # 短信模板按钮class
    sms_smsTemplate_class = 'button.btn.btn-default.smsTemplate'
    # 短信模板节日祝福的xpath
    sms_smsTemplate_frame_xpath = "//iframe[contains(@src,'toSelectSmsTemp.jhtml')]"
    sms_smsTemplate_zhufu_xpath = "//input[@name='smsType']"
    sms_smsTemplate_zhufu_content_class = 'button.btn-init.text-primary.useTemp'
    sms_smsTemplate_zhufu_content_text_class = "span.text-ellipsis.detail.cpopover"
    # 短信内容xpath
    sms_smsTemplate_my_smscontents_xpath = '//tbody/tr/td/span'
    # 短信发送模块的frame
    sms_sendSmsFrame = "//iframe[contains(@src,'toSendSms.jhtml')]"
    # 教职工发送的页面title
    sms_teachersend_title_text = '教职工发送的'
    # 教职工发送的页面--选择教职工框
    sms_teachersend_chosen_class = 'chosen-single'
    # 选择教师框，里面输入教师姓名的框
    sms_teachersend_chosen_teacherinput_class = 'chosen-search'
    # 选择教师，教师列表
    sms_teachersend_chosen_teachernamelist_xpath = '//ul[@class="chosen-results"]/li'
    # 教职工发送的页面--短信关键字
    sms_teachersend_keyword_id = 'txtKeyword'
    # 教职工发送的页面--时间选择框
    sms_teachersend_time_id = 'datefilter'
    # 教职工发送的页面--时间选择框里面的今天按钮
    sms_teachersend_time_today_xpath = '//div[@class="ranges"]/ul/li[text()="今天"]'
    # 教职工发送，查询结果列表
    sms_teachersend_queryresults_xpath = '//tbody[@id="listArea"]/tr'
    # 教职工发送，查询结果列表中的第一个的短信内容
    sms_teachersend_firstresulttext_xpath = '//td/span'
    # 教职工发送，查询结果列表中的第一个的收藏按钮
    sms_teachersend_firstresultbtn_xpath = '//td/button'
    # 教职工发送的页面--查询按钮
    sms_teachersend_selectbtn_css = 'button.btn.btn-primary'
    # 教职工发送的页面--上一页
    sms_teachersend_prev_css = 'li.disabled.prev'
    # 教职工发送的页面--页面数量选择
    sms_teachersend_paperSize_class = 'paperSize'
    """短信统计模块"""
    # 短信统计模块的table页title
    sms_smscount_title_xpath = '//ul/li/a[text()="本月短信统计"]'
    # 短信统计模块的头部信息
    sms_smscount_top_list = ("序号", "班主任姓名", "班主任手机号", "所在班级", "发送数量")
    sms_smscount_top_xpath = '//tr/th[text()="'
    # 短信统计模块列表内的信息
    sms_smscount_list_info_xpath = '//table/tbody/tr'